package com.hmall.api.client;

import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collection;

/**
 * 购物车的feign接口
 */
@FeignClient("cart-service")
public interface CartClient {
    @ApiOperation("批量删除购物车中商品")
    @ApiImplicitParam(name ="ids",value ="购物车条id集合")
    @DeleteMapping("/carts")
    public void deleteCartItemByIds(@RequestParam("ids") Collection<Long> ids);
}
